jQuery.lazyLoadXT.updateEvent='load orientationchange resize scroll touchmove focus click customlazyloadxtevent';
jQuery.lazyLoadXT.edgeY=a3_lazyload_extend_params.edgeY;
jQuery.lazyLoadXT.srcsetExtended=false;
jQuery(document).ready(function($){
jQuery(document).on('mouseenter', '.site-header-cart', function(){
jQuery(document).trigger('customlazyloadxtevent');
});
jQuery(document).on('mouseenter', '.widget_shopping_cart', function(){
jQuery(document).trigger('customlazyloadxtevent');
});
jQuery(document).on('mouseover', '#wp-admin-bar-top-secondary', function(){
jQuery(document).trigger('customlazyloadxtevent');
});
});
jQuery(window).on('ajaxComplete', function(){
setTimeout(function(){
jQuery(window).lazyLoadXT();
}, 1000);
});
;
(function ($){
"use strict";
$.fn.lightGallery=function (options){
var defaults={
mode: 'slide',
useCSS: true,
easing: 'ease', //'cubic-bezier(0.25, 0, 0.25, 1)',//
speed: 1000,
closable: false,
loop: true,
auto: false,
pause: 4000,
preload: 1,
escKey: true,
rel: false,
lang: {
allPhotos: 'All photos'
},
exThumbImage: false,
index: false,
thumbnail: false,
caption: true,
captionLink: false,
desc: true,
controls: true,
hideControlOnEnd: false,
mobileSrc: false,
mobileSrcMaxWidth: 640,
swipeThreshold: 50,
vimeoColor: 'CCCCCC',
videoAutoplay: true,
videoMaxWidth: 855,
disableOther: true,
errorMessage: "Image cannot be loaded. Make sure the path is correct and image exist.",
dynamic: false,
dynamicEl: [],
onOpen: function (){},
onSlideBefore: function (){},
onSlideAfter: function (){},
onSlideNext: function (){},
onSlidePrev: function (){},
onBeforeClose: function (){},
onCloseAfter: function (){}},
el=$(this),
$children,
index,
lightGalleryOn=false,
html='
',
isTouch=document.createTouch!==undefined||('ontouchstart' in window)||('onmsgesturechange' in window)||navigator.msMaxTouchPoints,
url_array=[], item, img, complete, $gallery, $galleryCont, $slider, $slide, $prev, $next, prevIndex, $thumb_cont, $thumb, windowWidth, interval, usingThumb=false,
aTiming=false,
aSpeed=false;
var settings=$.extend(true, {}, defaults, options);
var lightGallery={
init: function (){
el.each(function (){
var $this=$(this);
if(settings.disableOther==true){
jQuery.fn.prettyPhoto=function (){
return this;
};
jQuery.fn.fancybox=function (){
return this;
};
jQuery.fn.fancyZoom=function (){
return this;
};
jQuery.fn.colorbox=function (){
return this;
};}
if(settings.dynamic==true){
$children=settings.dynamicEl;
index=0;
prevIndex=index;
setUp.init(index);
}else{
$children=$(this);
$($this).each(function (index){
if($(this).is("a")){
url_array.push($(this).attr("href"));
}else{
url_array.push($(this).find("a").attr("href"));
}});
$children.click(function (e){
if(settings.rel==true&&$this.data('rel')){
var rel=$this.data('rel');
$children=$('[data-rel="' + rel + '"]').children();
}else{
$children=$this;
if($children.is("a")){
var imageSource=$children.attr("href");
}else{
var imageSource=$children.find("a").attr("href");
}}
e.preventDefault();
e.stopPropagation();
index=$.inArray(imageSource, url_array);
if(index < 0){
index=0;
}
prevIndex=index;
setUp.init(index);
});
}});
},
};
var setUp={
init: function (){
this.start();
this.build();
},
start: function (){
this.structure();
this.getWidth();
this.closeSlide();
},
build: function (){
this.addCaption();
this.addDesc();
this.slideTo();
this.keyPress();
if(settings.index){
this.slide(settings.index);
}else{
this.slide(index);
}
this.touch();
this.enableTouch();
setTimeout(function (){
$gallery.addClass('opacity');
}, 50);
},
structure: function (){
$('body').append(html).addClass('lightGallery');
$galleryCont=$('#lightGallery-outer');
$gallery=$('#lightGallery-Gallery');
$slider=$gallery.find('#lightGallery-slider');
var slideList='';
if(settings.dynamic==true){
for (var i=0; i < settings.dynamicEl.length; i++){
slideList +='';
}}else{
$.each(url_array, function (index, value){
slideList +='';
});
}
$slider.append(slideList);
$slide=$gallery.find('.lightGallery-slide');
},
closeSlide: function (){
var $this=this;
if(settings.closable){
$('.lightGallery-slide')
.on('click', function (event){
if($(event.target).is('.lightGallery-slide')){
$this.destroy();
}})
;
}
$('#lightGallery-close').bind('click touchend', function (){
$this.destroy();
});
},
getWidth: function (){
var resizeWindow=function (){
windowWidth=$(window).width();
};
$(window).bind('resize.lightGallery', resizeWindow());
},
doCss: function (){
var support=function (){
var transition=['transition', 'MozTransition', 'WebkitTransition', 'OTransition', 'msTransition', 'KhtmlTransition'];
var root=document.documentElement;
for (var i=0; i < transition.length; i++){
if(transition[i] in root.style){
return true;
}}
};
if(settings.useCSS&&support()){
return true;
}
return false;
},
enableTouch: function (){
var $this=this;
if(isTouch){
var startCoords={},
endCoords={};
$('body').on('touchstart.lightGallery', function (e){
endCoords=e.originalEvent.targetTouches[0];
startCoords.pageX=e.originalEvent.targetTouches[0].pageX;
startCoords.pageY=e.originalEvent.targetTouches[0].pageY;
});
$('body').on('touchmove.lightGallery', function (e){
var orig=e.originalEvent;
endCoords=orig.targetTouches[0];
e.preventDefault();
});
$('body').on('touchend.lightGallery', function (e){
var distance=endCoords.pageX - startCoords.pageX,
swipeThreshold=settings.swipeThreshold;
if(distance >=swipeThreshold){
$this.prevSlide();
clearInterval(interval);
}else if(distance <=-swipeThreshold){
$this.nextSlide();
clearInterval(interval);
}});
}},
touch: function (){
var xStart, xEnd;
var $this=this;
$('.lightGallery').bind('mousedown', function (e){
e.stopPropagation();
e.preventDefault();
xStart=e.pageX;
});
$('.lightGallery').bind('mouseup', function (e){
e.stopPropagation();
e.preventDefault();
xEnd=e.pageX;
if(xEnd - xStart > 20){
$this.prevSlide();
}else if(xStart - xEnd > 20){
$this.nextSlide();
}});
},
isVideo: function (src){
var youtube=src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9_\-]+)/i);
var vimeo=src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i);
if(youtube||vimeo){
return true;
}},
loadVideo: function (src, _id){
var youtube=src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9_\-]+)/i);
var vimeo=src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i);
var video='';
var a='';
if(youtube){
if(settings.videoAutoplay===true&&lightGalleryOn===false){
a='?autoplay=1&rel=0&wmode=opaque';
}else{
a='?wmode=opaque';
}
video='';
}else if(vimeo){
if(settings.videoAutoplay===true&&lightGalleryOn===false){
a='autoplay=1&';
}else{
a='';
}
video='';
}
return '';
},
loadContent: function (index, rec){
var $this=this;
var i, j,
l=url_array.length - index;
var src;
if(settings.preload > url_array.length){
settings.preload=url_array.length;
}
if(settings.mobileSrc===true&&windowWidth <=settings.mobileSrcMaxWidth){
if(settings.dynamic==true){
src=settings.dynamicEl[index]['mobileSrc'];
}else{
src=$children.eq(index).attr('data-responsive-src');
}}else{
if(settings.dynamic==true){
src=settings.dynamicEl[index]['src'];
}else{
src=url_array[index];
}}
if(!$this.isVideo(src)){
if(!$slide.eq(index).hasClass('loaded')){
$slide.eq(index).prepend('
');
$slide.eq(index).addClass('loaded');
}
if(rec===false){
complete=false;
if($slide.eq(index).find('img')[0].complete){
complete=true;
}
if(!complete){
$slide.eq(index).find('img').on('error', function (){
alert(settings.errorMessage);
$this.destroy();
});
$slide.eq(index).find('img').on('load error', function (){
var newIndex=index;
for (var k=0; k <=settings.preload; k++){
if(k >=url_array.length - index){
break;
}
$this.loadContent(newIndex + k, true);
}
for (var h=0; h <=settings.preload; h++){
if(newIndex - h < 0){
break;
}
$this.loadContent(newIndex - h, true);
}});
}else{
var newIndex=index;
for (var k=0; k <=settings.preload; k++){
if(k >=url_array.length - index){
break;
}
$this.loadContent(newIndex + k, true);
}
for (var h=0; h <=settings.preload; h++){
if(newIndex - h < 0){
break;
}
$this.loadContent(newIndex - h, true);
}}
}}else{
if(!$slide.eq(index).hasClass('loaded')){
if(rec===false&&lightGalleryOn===true&&settings.preload===0){
setTimeout(function (){
$slide.eq(index).prepend($this.loadVideo(src, index));
}, settings.speed);
}else{
$slide.eq(index).prepend($this.loadVideo(src, index));
}
$slide.eq(index).addClass('loaded');
}
if(rec===false){
complete=false;
if($slide.eq(index).find('iframe')[0].complete){
complete=true;
}
if(!complete){
$slide.eq(index).find('iframe').on('error', function (){
alert(settings.errorMessage);
$this.destroy();
});
$slide.eq(index).find('iframe').on('load error', function (){
var newIndex=index;
for (var k=0; k <=settings.preload; k++){
if(k >=url_array.length - index){
break;
}
$this.loadContent(newIndex + k, true);
}
for (var h=0; h <=settings.preload; h++){
$this.loadContent(newIndex - h, true);
}});
}else{
var newIndex=index;
for (var k=0; k <=settings.preload; k++){
$this.loadContent(newIndex + k, true);
}
for (var h=0; h <=settings.preload; h++){
$this.loadContent(newIndex - h, true);
}}
}}
},
addCaption: function (){
if(settings.caption===true){
var i, title=false;
for (i=0; i < url_array.length; i++){
if(settings.dynamic==true){
title=settings.dynamicEl[i]['caption'];
}else{
item=jQuery("a[href='" + url_array[i] + "']");
img=item.find("img");
title=(item.attr("data-title") ? item.attr("data-title"):(img.attr("alt") ? img.attr("alt"):""));
}
if(settings.captionLink===true){
var link=null;
if(settings.dynamic==true){
link=settings.dynamicEl[i]['link'];
}else{
link=$children.eq(i).attr('data-link');
}
if(typeof link!=='undefined'&&link!==''){
link=link
}else{
link='#'
}
if(title!="undefined"){
if(title!=""){
$slide.eq(i).append('');
}}
}else{
if(typeof title!='undefined'||title!=null){
if(title!="undefined"){
if(title!=""){
$slide.eq(i).append('' + title + '
');
}}
}}
}}
},
addDesc: function (){
if(settings.desc===true){
var i, description=false;
for (i=0; i < url_array.length; i++){
if(settings.dynamic==true){
description=settings.dynamicEl[i]['desc'];
}else{
item=jQuery("a[href='" + url_array[i] + "']");
description=item.attr("data-desc");
if(typeof description=='undefined'||description==null){
var descContainerId=jQuery("IMG", item).attr("aria-describedby");
if(typeof descContainerId!='undefined'&&descContainerId!=null){
description=jQuery("#" + descContainerId).text();
}}
}
if(typeof description!='undefined'&&description!=null){
if(settings.caption===false){
$slide.eq(i).append('' + description + '
');
}else{
$slide.eq(i).find('.info').append('' + description + '');
}}
}}
},
slideTo: function (){
var $this=this;
if(settings.controls===true&&url_array.length > 1){
$gallery.append('');
$prev=$gallery.find('#lightGallery-prev');
$next=$gallery.find('#lightGallery-next');
$prev.bind('click', function (){
$this.prevSlide();
clearInterval(interval);
});
$next.bind('click', function (){
$this.nextSlide();
clearInterval(interval);
});
}},
keyPress: function (){
var $this=this;
$(window).bind('keyup.lightGallery', function (e){
e.preventDefault();
e.stopPropagation();
if(e.keyCode===37){
$this.prevSlide();
clearInterval(interval);
}
if(e.keyCode===38&&settings.thumbnail===true){
if(!$thumb_cont.hasClass('open')){
if($this.doCss()&&settings.mode==='slide'){
$slide.eq(index).prevAll().removeClass('nextSlide').addClass('prevSlide');
$slide.eq(index).nextAll().removeClass('prevSlide').addClass('nextSlide');
}
$thumb_cont.addClass('open');
}}else if(e.keyCode===39){
$this.nextSlide();
clearInterval(interval);
}
if(e.keyCode===40&&settings.thumbnail===true){
if($thumb_cont.hasClass('open')){
$thumb_cont.removeClass('open');
}}else if(settings.escKey===true&&e.keyCode===27){
if(settings.thumbnail===true&&$thumb_cont.hasClass('open')){
$thumb_cont.removeClass('open');
}else{
$this.destroy();
}}
});
},
nextSlide: function (){
var $this=this;
index=$slide.index($slide.eq(prevIndex));
$this.disableVideo(index);
if(index + 1 < url_array.length){
index++;
$this.slide(index);
}else{
if(settings.loop){
index=0;
$this.slide(index);
}else if(settings.mode==='fade'&&settings.thumbnail===true&&url_array.length > 1){
$thumb_cont.addClass('open');
}}
settings.onSlideNext.call(this);
},
prevSlide: function (){
var $this=this;
index=$slide.index($slide.eq(prevIndex));
$this.disableVideo(index);
if(index > 0){
index--;
$this.slide(index);
}else{
if(settings.loop){
index=url_array.length - 1;
$this.slide(index);
}else if(settings.mode==='fade'&&settings.thumbnail===true&&url_array.length > 1){
$thumb_cont.addClass('open');
}}
settings.onSlidePrev.call(this);
},
disableVideo: function (index){
var $this=this;
var src;
if(settings.mobileSrc===true&&windowWidth <=settings.mobileSrcMaxWidth){
if(settings.dynamic==true){
src=settings.dynamicEl[index]['mobileSrc'];
}else{
src=$children.eq(index).attr('data-responsive-src');
}}else{
if(settings.dynamic==true){
src=settings.dynamicEl[index]['src'];
}else{
src=url_array[index];
}}
if($this.isVideo(src)){
var youtube=src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9_\-]+)/i);
var vimeo=src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i);
var video='';
var a='';
var video_src="";
if(youtube){
if(settings.videoAutoplay===true&&lightGalleryOn===false){
a='?rel=0&wmode=opaque';
}else{
a='?wmode=opaque';
}
video_src="//www.youtube.com/embed/" + youtube[1] + a;
}else if(vimeo){
video_src="http://player.vimeo.com/video/" + vimeo[1] + "?byline=0&portrait=0&color=" + settings.vimeoColor;
}
$slide.eq(index).find("iframe").attr("src", video_src);
}},
slide: function (index){
this.loadContent(index, false);
if(lightGalleryOn){
if(!$slider.hasClass('on')){
$slider.addClass('on');
}
if(this.doCss()&&settings.speed!==''){
if(!$slider.hasClass('speed')){
$slider.addClass('speed');
}
if(aSpeed===false){
$slider.css('transition-duration', settings.speed + 'ms');
aSpeed=true;
}}
if(this.doCss()&&settings.easing!==''){
if(!$slider.hasClass('timing')){
$slider.addClass('timing');
}
if(aTiming===false){
$slider.css('transition-timing-function', settings.easing);
aTiming=true;
}}
settings.onSlideBefore.call(this);
}
if(settings.mode==='slide'){
var isiPad=navigator.userAgent.match(/iPad/i)!=null;
if(this.doCss()&&!$slider.hasClass('slide')&&!isiPad){
$slider.addClass('slide');
}else if(this.doCss()&&!$slider.hasClass('useLeft')&&isiPad){
$slider.addClass('useLeft');
}
if(!this.doCss()&&!lightGalleryOn){
$slider.css({
left: (-index * 100) + '%'
});
}else if(!this.doCss()&&lightGalleryOn){
$slider.animate({
left: (-index * 100) + '%'
}, settings.speed, settings.easing);
}}else if(settings.mode==='fade'){
if(this.doCss()&&!$slider.hasClass('fadeM')){
$slider.addClass('fadeM');
}else if(!this.doCss()&&!$slider.hasClass('animate')){
$slider.addClass('animate');
}
if(!this.doCss()&&!lightGalleryOn){
$slide.fadeOut(100);
$slide.eq(index).fadeIn(100);
}else if(!this.doCss()&&lightGalleryOn){
$slide.eq(prevIndex).fadeOut(settings.speed, settings.easing);
$slide.eq(index).fadeIn(settings.speed, settings.easing);
}}
if(index + 1 >=url_array.length&&settings.auto&&settings.loop===false){
clearInterval(interval);
}
$slide.eq(prevIndex).removeClass('current');
$slide.eq(index).addClass('current');
if(this.doCss()&&settings.mode==='slide'){
if(usingThumb===false){
$('.prevSlide').removeClass('prevSlide');
$('.nextSlide').removeClass('nextSlide');
$slide.eq(index - 1).addClass('prevSlide');
$slide.eq(index + 1).addClass('nextSlide');
}else{
$slide.eq(index).prevAll().removeClass('nextSlide').addClass('prevSlide');
$slide.eq(index).nextAll().removeClass('prevSlide').addClass('nextSlide');
}}
if(settings.thumbnail===true&&url_array.length > 1){
$thumb.removeClass('active');
$thumb.eq(index).addClass('active');
}
if(settings.controls&&settings.hideControlOnEnd&&settings.loop===false&&url_array.length > 1){
var l=url_array.length;
l=parseInt(l) - 1;
if(index===0){
$prev.addClass('disabled');
$next.removeClass('disabled');
}else if(index===l){
$prev.removeClass('disabled');
$next.addClass('disabled');
}else{
$prev.add($next).removeClass('disabled');
}}
prevIndex=index;
lightGalleryOn===false ? settings.onOpen.call(this):settings.onSlideAfter.call(this);
lightGalleryOn=true;
usingThumb=false;
},
destroy: function (){
settings.onBeforeClose.call(this);
lightGalleryOn=false;
aTiming=false;
aSpeed=false;
usingThumb=false;
clearInterval(interval);
$('.lightGallery').off('mousedown mouseup');
$('body').off('touchstart.lightGallery touchmove.lightGallery touchend.lightGallery');
$(window).off('resize.lightGallery keyup.lightGallery');
$gallery.addClass('fadeM');
setTimeout(function (){
$galleryCont.remove();
$('body').removeClass('lightGallery');
}, 500);
settings.onCloseAfter.call(this);
}};
lightGallery.init();
return this;
};}(jQuery));
function vc_js(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_googleplus(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_google_fonts(),vc_gridBehaviour(),vc_rowBehaviour(),vc_googleMapsPointer(),vc_ttaActivation(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}function getSizeName(){var screen_w=jQuery(window).width();return screen_w>1170?"desktop_wide":screen_w>960&&1169>screen_w?"desktop":screen_w>768&&959>screen_w?"tablet":screen_w>300&&767>screen_w?"mobile":300>screen_w?"mobile_portrait":""}function loadScript(url,$obj,callback){var script=document.createElement("script");script.type="text/javascript",script.readyState&&(script.onreadystatechange=function(){("loaded"===script.readyState||"complete"===script.readyState)&&(script.onreadystatechange=null,callback())}),script.src=url,$obj.get(0).appendChild(script)}function vc_ttaActivation(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}function vc_accordionActivate(event,ui){if(ui.newPanel.length&&ui.newHeader.length){var $pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');"undefined"!=typeof jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}}function initVideoBackgrounds(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}function vc_initVideoBackgrounds(){jQuery(".vc_row").each(function(){var youtubeUrl,youtubeId,$row=jQuery(this);$row.data("vcVideoBg")?(youtubeUrl=$row.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($row.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($row,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$row.has($grid).length&&vcResizeVideoBackground($row)})):$row.find(".vc_video-bg").remove()})}function insertYoutubeVideoAsBackground($element,youtubeId,counter){if("undefined"==typeof YT.Player)return counter="undefined"==typeof counter?0:counter,counter>100?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight(),ratio1=16,ratio2=9;ratio1/ratio2>containerW/containerH?(iframeW=containerH*(ratio1/ratio2),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px",iframeW+="px",iframeH+="px"):(iframeW=containerW,iframeH=containerW*(ratio2/ratio1),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px",iframeW+="px",iframeH+="px"),$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}function vcExtractYoutubeId(url){if("undefined"==typeof url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id?id[1]:!1}function vc_googleMapsPointer(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.click(function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.mouseleave(function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;iparseInt(ver[1]);$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];if($tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){1!==ui.newPanel.index()&&ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}),interval&&interval>0)try{$tabs.tabs("rotate",1e3*interval)}catch(e){window.console&&window.console.log&&console.log(e)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").click(function(e){return e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").click(function(e){if(e.preventDefault(),old_version){var index=$tabs.tabs("option","selected");jQuery(this).parent().hasClass("wpb_next_slide")?index++:index--,0>index?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?index+1>=length?0:index+1:0>index-1?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){"undefined"!=typeof jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:"undefined"==typeof layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){var $carousel=$parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel");$carousel.each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);var carousel_speed=(getColumnsCount(jQuery(this)),500);jQuery(this).hasClass("columns_count_1")&&(carousel_speed=900);var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName(),before_resize!=screen_size&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderSpeed=800,sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:sliderSpeed,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){var url=location.href,hashtag=url.indexOf("#!prettyPhoto")?!0:!1;hashtag&&(location.hash="!")},social_tools:""})}catch(err){window.console&&window.console.log&&console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");$el_full.length||($el_full=$el.parent().next(".vc_row-full-width"));var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden")}),$(document).trigger("vc-full-width-row",$elements)}function parallaxRow(){var vcSkrollrOptions,callSkrollInit=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):"undefined"!=typeof parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),callSkrollInit&&window.skrollr?(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll):!1}function fullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$element.offset().top,windowHeight>offsetTop&&(fullHeight=100-offsetTop/(windowHeight/100),$element.css("min-height",fullHeight+"vh"))}$(document).trigger("vc-full-height-row",$element)}function fixIeFlexbox(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");(msie>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('')})}var $=window.jQuery;$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),fixIeFlexbox(),vc_initVideoBackgrounds(),parallaxRow()}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');if(vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")){var $frame=$google_maps.find("iframe");$frame.attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")}panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.vc_googleMapsPointer,jQuery(document).ready(function($){window.vc_js()});